package com.shawn.dubbo.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shawn.commons.utils.CommentType;
import com.shawn.model.mongo.Movement;
import com.shawn.model.vo.PageResult;
import org.bson.types.ObjectId;

import java.util.List;

public interface MovementApi {
    String saveMovement(Movement movement);

    IPage<Movement> selectByPage(Integer page, Integer pageSize, Long userId);

    IPage<Movement> getFriendsDynamics(Integer page, Integer pageSize, Long userId);

    List<Movement> getRandomMovement(Integer pageSize,Long userId);

    List<Movement> getByIdList(List<Long> pidList,Long userId);

    Movement getById(String id);

    Integer operateLikeOrLove(String id,Long userId, CommentType commentType, Number number);

    PageResult<Movement> selectByCondition(Integer page, Integer pageSize, Long userId, Integer state);

    void update(Movement movement);

    String passOrNot(List<String> ids,Integer state);
}
